#include <iostream>
#include "log.hpp"

static const char* levelTostring(eLogLevel level) {
    switch (level) {
    case LOG_TRACE: return "TRACE";
    case LOG_DEBUG: return "DEBUG";
    case LOG_ERROR: return "ERROR";
    case LOG_WARNING: return "WARNING";
    case LOG_CRITICAL: return "CRITICAL";
    default: break;
    }
    return "UNKNOWN";
}

void log(eLogLevel level, std::string msg)
{
    std::cout << "testProject [" << levelTostring(level) << "] " << msg << "\n"; 
}